<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <style type="text/css" media="screen">
    body {
        overflow: hidden;
    }
    
    #editor { 
        margin: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
  </style>
</head>
<body>

<pre id="editor"></pre>

    
<script src="/ace/build/src/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="/ace/build/src/theme-twilight.js" type="text/javascript" charset="utf-8"></script>
<script src="/ace/build/src/mode-python.js" type="text/javascript" charset="utf-8"></script>
<script>
window.onload = function() {
    var editor = ace.edit("editor");

    editor.setTheme("ace/theme/twilight");
    editor.setShowPrintMargin(false);
    
    var JavaScriptMode = require("ace/mode/python").Mode;
    editor.getSession().setMode(new JavaScriptMode());
    parent.globalEditor = editor;
};
</script>

</body>
</html>

